Routines (alphabetical) > Routines: N > NCDF Routines > NCDF_DIMID

NCDF_DIMID

The NCDF_DIMID function returns the ID of a NetCDF dimension, given the name of the dimension.

Syntax

Result = NCDF_DIMID( Cdfid, DimName )

Return Value

Return the dimension ID or -1 if the dimension does not exist.

Arguments

Cdfid

The NetCDF ID, returned from a previous call to NCDF_OPEN, NCDF_CREATE, or NCDF_GROUPDEF.

DimName

A scalar string containing the dimension name.

Keywords

None

Examples

See NCDF_VARPUT.

Version History

 

Pre 4.0

Introduced